package com.zkgengkun.console.service;

import com.zkgengkun.domain.User;
import org.springframework.data.domain.Page;

/**
 * @author gengshikun
 * @date 2016/12/6
 */
public interface UserService {

    void save(User user);

    Page getListForPage(String query, Integer pageNo);

    User getOneByEmailAndPassword(String username, String password);

    User getOneById(String userId);

    User getOneByEmail(String email);

    /**
     * 更新某个字段
     * @param userId
     * @param aTrue
     */
    void updateValidate(String userId, Boolean aTrue);
}
